home *** CD-ROM | disk | FTP | other *** search
-
- Impression Compress
-
- Copyright © Jonathan Marten 1992
- Version 1·00, 22nd September 1992
-
- Introduction
- ------------
-
- This utility, used in conjunction with SparkFS, will get around (with
- limitations) one of Impression's most annoying features — storing documents
- in an application directory. Although convenient for Computer Concepts'
- programmers, the complex structure takes up a lot of space on disc
- (especially for hard disc users); also, if the document is copied or
- renamed it will lose its distinctive sprite. Copying it is also very slow…
-
- ImpCompr stores the document in a SparkFS archive, with its own file type
- and an icon that looks something like the Impression document icon. Within
- the archive, the document's application directory is stored in the normal
- Impression format: some of the files there (e.g. !Sprites) are superfluous,
- but are retained for simplicity. As well as the space saved by eliminating
- the subdirectories, SparkFS's normal compression helps to reduce the file's
- size to usually about half of that taken up by the uncompressed document.
-
- When a file of this type is run, a small Basic program is executed which
- converts the file name into a SparkFS archive pathname, finds the name of
- the document file within the archive and renames it, if necessary, so that
- Impression's window title is correct. It then runs the document directory
- from inside the archive: any subsequent saves write directly back to the
- archive.
-
-
- Compressing documents
- ---------------------
-
- To compress documents, ensure that SparkFS is loaded. Then run the
- !ImpCompr application, which will install itself onto the icon bar. To
- compress an Impression document directory — which must already exist on
- disc — drag it onto the ImpCompr icon on the icon bar. It will be saved to
- a file with the same name, without the leading “!”, in the same directory as
- the document.
-
- Depending on your SparkFS settings, an error such as “Not enough free
- memory” may be given. In this case, you should delete the partially-created
- archive file and try again, after increasing SparkFS's memory setting by a
- suitable amount. Due to the way that SparkFS operates, more memory is
- required for this initial compression operation than will be required for
- Impression to save into the archive later, so don't worry if it seems to
- need several hundred K allocated at this stage.
-
- When this is complete, the compressed files should be ready to run: at this
- stage, the original documents still exist on disc. They can be deleted
- later, when you are sure that the compressed files are usable.
-
-
- Opening compressed documents
- ----------------------------
-
- To open a compressed document, ensure that SparkFS is loaded then simply
- double-click on it in a Filer window. It is not necessary for the ImpCompr
- application to be loaded, although it must have been ‘seen’ by the Filer at
- some point. If it has not been seen, the standard error message “No run
- action specified for this file type” will be given.
-
- Impression will then be started, if necessary, and the document loaded into
- it (RiscOS 2 users see below). To save the document, simply bring up the
- save box and click OK; it will be saved back into the archive. It can also
- be saved to somewhere else on disc, as an uncompressed document, in the
- usual way.
-
-
- Notes
- -----
-
- There is a slight disadvantage when using RiscOS 2, in that every time a
- compressed file is double-clicked to open it a new copy of Impression will
- be loaded. This is due to that version of the OS not supporting the
- Filer_Run command; it has to use the normal Run command which does not
- check whether the interested application is already loaded before starting
- another copy. This could be avoided, with a bit of effort, but now that
- RiscOS 3 is widely available it is probably not worth fixing.
-
- To inspect the contents of the compressed file, it can be dropped onto the
- SparkFS icon; it will be stamped with the “Archive” file type (DDC). To
- re-stamp it to the “ImpCompr” file type (613), drop the archive file onto
- the ImpCompr icon.
-
- A document compressed in this way cannot be used for merging styles (via
- Impression's Edit style dialogue). It will be necessary to open the archive
- file using SparkFS, then drag the document application onto the dialogue box
- load target. When the operation is complete, the archive viewer should be
- closed and the file re-stamped as above.
-
-
- Conditions
- ----------
-
- The ImpCompr application is supplied “as is”; no responsibility is accepted
- for loss of data, damage to files or wasted effort arising from or connected
- with the use of it. You use ImpCompr at your own risk.
-
- The application is FreeWare, but remains copyright © myself. It may be
- freely distributed by anyone (including PD libraries), on any medium
- (including bulletin boards), as long as no files within the application
- directory are altered (this includes this documentation file). It may not
- be sold for profit.
-
- Please send any bug reports or suggestions to:
-
- Post: 11 Carmarthen Close
- Farnborough
- Hampshire
- GU14 8TJ
-
- E-mail: jmarten@cix.compulink.co.uk
- Arcade: #387
- Phone: (0252) 542431
-
- Jonathan Marten
- September 1992
-